package com.hcrazy.manchester.app.pojo;

import java.util.List;

public class PageModel {

	private int numPerPage = 8;
	
	private int pageNum = 1;
	
	private int totalCount;
	
	private List<?> result;

	public int getTotalPage() {
		return (totalCount + numPerPage - 1)/numPerPage;
	}

	public int getNumPerPage() {
		return numPerPage;
	}

	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public List<?> getResult() {
		return result;
	}

	public void setResult(List<?> result) {
		this.result = result;
	}
}
